Home WhatsApp Business API Article
Integrating your WooCommerce store with WhatsApp is a powerful way to engage customers and showcase your products directly in their chat interface. With Wapikon, you can dynamically fetch WooCommerce product data and display it as interactive lists within WhatsApp. This guide will walk you through the entire process, step by step.
If you're new to Wapikon or want to learn how to integrate interactive dynamic lists in WhatsApp, check out our blog on How to Create Dynamic Lists in WhatsApp Interactive Messages.
Interactive List Message Limitations
When displaying products inside WhatsApp using Interactive List Messages, there is a limitation imposed by WhatsApp: only 10 products can be included in a single interactive message.
If you want to display more than 10 products, you will need to send multiple interactive messages. For example, the first interactive message can showcase 10 products, and subsequent messages can contain additional products.
Step 1: Generate WooCommerce API Keys
To fetch product data from WooCommerce, you first need API credentials.
Example:
If you're unfamiliar with generating WooCommerce API keys, you can read our step-by-step guide on Setting Up WooCommerce REST API Keys.
Step 2: Set Up HTTP API Integration in Wapikon
Next, configure Wapikon to connect with your WooCommerce store via the REST API.
Navigate to HTTP API Integration in Wapikon:
Enter the WooCommerce API Details:
Example:
https://yourstore.com/wp-json/wc/v3/products?category=19
Method: Choose GET.
Advanced Option: Using Dynamic Custom Fields
In addition to using a static category ID (e.g., category=19), you can dynamically fetch and use categories based on user interaction. Here's how:
Example API: https://yourstore.com/wp-json/wc/v3/products/categories
Example Endpoint with Custom Field:
https://yourstore.com/wp-json/wc/v3/products?category=#Chosen_category_id#
Key Notes:
2. Map the API Response:
3. Test the API Connection:
4. Save the API configuration.
For a detailed understanding of HTTP API integration, refer to our blog on HTTP API Integration with Wapikon.
Step 3: Configure the Bot Flow in Wapikon
Once the API is set up, configure the bot flow to display WooCommerce products.
Start the Flow:
Fetch WooCommerce Products:
Display Products in Interactive WhatsApp Messages:
Interactive Section Settings:
Row Title: Use the #custom_field->key# format to populate titles.
Example: #Furnitureproduct->name# will display product names like "Almirah Wooden."
Row Description: Include additional details like price and stock status.
Example: #Furnitureproduct->price# - #Furnitureproduct->stock_status#.
Save Selection: Map user selections to a custom field.
Test the Flow:
Preview the interactive messages to ensure the products are displayed correctly in WhatsApp.
To learn more about configuring dynamic rows in interactive messages, read our blog on Using Dynamic Lists in Wapikon.
Step 4: Customize the User Interaction
With Wapikon, you can further customize the flow to enhance user experience:
Example Flow Overview
Here's how the bot flow might look:
Benefits of Using Wapikon with WooCommerce
Real-Time Product Updates: Display the latest products and stock information directly from your WooCommerce store.
Improved Customer Engagement: Interactive lists make it easy for users to browse and select products in WhatsApp.
Streamlined Workflow: Automate product inquiries, saving time and effort for both you and your customers.
Personalized Experiences: Tailor product recommendations based on user preferences.
Conclusion
Integrating WooCommerce with WhatsApp through Wapikon allows you to bring your products directly to your customers' fingertips. By following this guide, you can easily fetch WooCommerce product data and display it as dynamic, interactive messages in WhatsApp.
Start leveraging this powerful integration today and take your customer engagement to the next level!
[ 0 Out of 0 Found Helpful ]
Submit a ticket and we’ll get back to you as soon as possible.